/*
    This file is part of VK/KittenPHP-DB-Engine.

    VK/KittenPHP-DB-Engine is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    VK/KittenPHP-DB-Engine is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with VK/KittenPHP-DB-Engine.  If not, see <http://www.gnu.org/licenses/>.

    This program is released under the GPL with the additional exemption
    that compiling, linking, and/or using OpenSSL is allowed.
    You are free to remove this exemption from derived works.

    Copyright 2010-2013 Vkontakte Ltd
              2010-2013 Arseny Smirnov
              2010-2013 Aliaksei Levin
*/

#pragma once

struct tl_isearch_add_search_query {
  int user_id;
  int type;
  int count;
  int query_len;
  char query[0];
};

struct tl_isearch_get_hints {
  int query_len;
  char query[0];
};

struct tl_isearch_get_types {
  int query_len;
  char query[0];
};

struct tl_isearch_get_suggestion {
  int query_len;
  char query[0];
};

struct tl_isearch_get_top {
  int limit;
};

struct tl_isearch_get_best {
  int limit;
};

struct tl_isearch_add_black_list {
  int query_len;
  char query[0];
};

struct tl_isearch_delete_black_list {
  int query_len;
  char query[0];
};

struct tl_isearch_get_black_list {
};

struct tl_isearch_force_update_black_list {
};
